package com.example.mystore.service;

import com.example.mystore.model.Product;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

public interface ProductService {
    void addProduct(Product product);

    void updateProduct(Product product);
    Product getProductById(int id);
    List<Product> getAllProducts();
    String saveImage(MultipartFile image) throws IOException;
    void toggleProductStatus(int id);
    void toggleHotStatus(int id);


}
